package com.team1.supervend.domain;

public class ProductDescription {
	private ItemID id;
	private Money cost;
	private String description;

	public ProductDescription( ItemID id, Money cost, String description ) {
		this.id = id;
		this.cost = cost;
		this.description = description;
	}

	public ItemID getItemID() { return id; }
	public void   setItemID( ItemID id ) { this.id = id; }

	public Money  getCost() { return cost; }
	public void   setCost( Money cost ) { this.cost = cost; }
	
	public String getDescription() { return description; }
	public void   setDescription( String description ) { this.description = description; }

	public void updateALL( ItemID id, Money cost, String description ) {
		setItemID( id );
		setCost( cost );
		setDescription( description );
	}

	public void updateItemID( ItemID id ) {
		setItemID( id );
	}

	public void updateCost( Money cost ) {
		setCost( cost );
	}

	public void updateDescription( String description ) {
		setDescription( description );
	}

	public void PrintDescription( ) {
		System.out.format(" ItemId %d: %s\n",id.getItemID(), description);
		System.out.format("   Price = $%.2f\n", cost.getMoney());
		
	}
}
